package models

import (
	"time"
)

// Student 学生信息模型
type Student struct {
	ID        uint      `gorm:"primarykey" json:"id"`
	StudentID string    `gorm:"uniqueIndex;size:20;not null" json:"student_id"`
	Name      string    `gorm:"size:50;not null" json:"name"`
	Gender    string    `gorm:"size:10" json:"gender"`
	Phone     string    `gorm:"size:20" json:"phone"`
	RoomNo    string    `gorm:"size:20" json:"room_no"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}
